// components/address/addressMap/addressMap.js
Component({
    /**
     * 组件的属性列表
     */
    properties: {
        markerArr:{
            type:Array,
            default:[]
        }
    },

    /**
     * 组件的初始数据
     */
    data: {
        showOpeate:true,
        mark:[
            {
                id:1, //标记点 id
                width:50,
                longitude:108.199584,
                latitude: 22.8371,
                height:30,
                title:"蜜雪冰城"
            },
            {
                id:2, //标记点 id
                width:50,
                longitude:108.218775,
                latitude: 22.841268,
                height:30,
                title:"蜜雪冰城"
            },
            {
                id:3, //标记点 id
                width:50,
                longitude:108.201827,
                latitude: 22.830372,
                height:30,
                title:"蜜雪冰城"
            }
        ]
    },

    /**
     * 组件的方法列表
     */
    methods: {
        changeShow(){
            this.setData({
                showOpeate:!this.data.showOpeate
            })
            this.triggerEvent("screenHieght",this.data.showOpeate)
        }
    }
})
